Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbox2d.common
Class MathUtils

    java.lang.Object
      org.jbox2d.common.MathUtils

    public class MathUtils

extends java.lang.Object

Constructor Summary
`MathUtils()`

Method Summary
`static float` | `clamp(float a, float low, float high)`
`static Vec2` | `clamp(Vec2 a, Vec2 low, Vec2 high)`
`static boolean` | `isPowerOfTwo(int x)`
`static int` | `nextPowerOfTwo(int x)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MathUtils

    public MathUtils()

Method Detail

### clamp

    public static final float clamp(float a,
                                    float low,
                                    float high)

### clamp

    public static final Vec2 clamp(Vec2 a,
                                   Vec2 low,
                                   Vec2 high)

### nextPowerOfTwo

    public static final int nextPowerOfTwo(int x)

### isPowerOfTwo

    public static final boolean isPowerOfTwo(int x)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD